<div class="modal-header">
    <span class="modal-title text-danger"><i class="fas fa-info-circle mr-1"></i>{:lang('v_edit_admin_file')}：admin.php</span>
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body py-4">
    <form name="form_edit" id="form_edit" action="{:url('/index/editadminfile',['lang'=>$lang])}" method="post" class="px-5">
        <input type="hidden" name="lang" value="{$lang}">
        <div class="mb-2">{:lang('v_admin_filename')}：</div>
        <div class="input-group">
            <input name="filename" id="filename" maxlength="20" placeholder="{:lang('v_english_only')}" type="text" class="form-control">
            <span class="input-group-append"><button type="submit" class="btn btn-default">.php</button></span>
        </div>
        <div class="mt-2 text-primary">{:lang('v_admin_address')}：</div>
        <div class="mb-3 text-danger">{$domain}/<span class="">{:lang('v_entered_above')}</span>.php</div>
        <div class="mb-3">
            {if is_file(app()->getRootPath().'.env')}
                <button type="submit" class="btn btn-success mr-4"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')}</button>
            {else /}
                <button type="button" class="do_ajax btn btn-info mr-4" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/index/editadminfile',['lang'=>$lang])}','');"><i class="fas fa-check-circle mr-1"></i>{:lang('v_save')}</button>
            {/if}
            <button onclick="javascript:closetips();" type="button" class="btn btn-secondary"><i class="fas fa-times-circle mr-1"></i>{:lang('v_donot_show_again')}</button>
        </div>
    </form>
</div>